export default {
  namespaced: true,
  state: {
    //是否已登录
    isLogined: localStorage.getItem("x-auth-token") ? true : false,
    // isLogined: localStorage.getItem("x-auth-token") ||  false, 也可以实现
  },
  getters: {},
  mutations: {
      //修改是否登录状态
    changeIsLogined(state, payload) {
      state.isLogined = payload;
    },
  },
};
